|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnegotiator.utility.EvaluatorInteger
public class EvaluatorInteger
This class is used to convert the value of an integer issue to a utility. This object stores the range of the issue and a linear function mapping each value to a utility. Note that this utility is not yet normalized by the issue weight and is therefore in the range [0,1].
| Constructor Summary | |
|---|---|
EvaluatorInteger()
Creates a new integer evaluator with weight 0 and no values. |
|
| Method Summary | |
|---|---|
EvaluatorInteger |
clone()
|
double |
getConstantParam()
Deprecated. |
java.lang.Double |
getEvaluation(int value)
|
java.lang.Double |
getEvaluation(UtilitySpace uspace,
Bid bid,
int index)
This method returns the utility of the value of an issue. |
EVALFUNCTYPE |
getFuncType()
|
double |
getLinearParam()
Deprecated. |
int |
getLowerBound()
|
double |
getOffset()
|
double |
getSlope()
|
EVALUATORTYPE |
getType()
|
int |
getUpperBound()
|
double |
getUtilHighestValue()
|
double |
getUtilLowestValue()
|
double |
getWeight()
|
java.lang.String |
isComplete(Objective whichobj)
Check whether the evaluator has enough information to make an evaluation. |
void |
loadFromXML(SimpleElement pRoot)
Method to |
void |
lockWeight()
Locks the weight of this Evaluator. |
void |
setConstantParam(double offset)
Deprecated. |
void |
setLinearFunction(double utilLowInt,
double utilHighInt)
Specifies the linear utility function of the issue by giving the utility of the lowest value and the highest value. |
void |
setLinearParam(double slope)
Deprecated. |
void |
setLowerBound(int lb)
Sets the lower bound of this evaluator. |
void |
setOffset(double offset)
Sets the offset of the linear utility function. |
void |
setSlope(double slope)
Sets the slope of the linear utility function. |
void |
setUpperBound(int ub)
Sets the upper bound of this evaluator. |
void |
setWeight(double wt)
Sets the weigth with which an Objective or Issue is evaluated. |
SimpleElement |
setXML(SimpleElement evalObj)
Sets weights and evaluator properties for the object in SimpleElement representation that is passed to it. |
java.lang.String |
toString()
|
void |
unlockWeight()
Unlock the weight of this evaluator. |
boolean |
weightLocked()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EvaluatorInteger()
| Method Detail |
|---|
public double getWeight()
getWeight in interface Evaluatorpublic void setWeight(double wt)
Evaluator
setWeight in interface Evaluatorwt - The new weight.public void lockWeight()
lockWeight in interface Evaluatorpublic void unlockWeight()
unlockWeight in interface Evaluatorpublic boolean weightLocked()
weightLocked in interface Evaluator
public java.lang.Double getEvaluation(UtilitySpace uspace,
Bid bid,
int index)
Evaluator
getEvaluation in interface Evaluatoruspace - preference profilebid - in which the value is contained.index - of the issue in the bid.
public java.lang.Double getEvaluation(int value)
value - of an issue.
public EVALUATORTYPE getType()
getType in interface Evaluatorpublic EVALFUNCTYPE getFuncType()
public int getLowerBound()
public int getUpperBound()
public double getUtilLowestValue()
public double getUtilHighestValue()
public void setLowerBound(int lb)
lb - The new lower boundpublic void setUpperBound(int ub)
ub - The new upper bound
public void setLinearFunction(double utilLowInt,
double utilHighInt)
utilLowInt - utility of the lowest vale.utilHighInt - utility of the highest value.public void loadFromXML(SimpleElement pRoot)
Evaluator
loadFromXML in interface Evaluatorpublic SimpleElement setXML(SimpleElement evalObj)
evalObj - The object of which to set the evaluation properties.
public java.lang.String isComplete(Objective whichobj)
Evaluator
isComplete in interface Evaluatorwhichobj - is the objective/issue to which this evaluator is attached.
public double getSlope()
@Deprecated public double getLinearParam()
public void setSlope(double slope)
slope - of the linear utility function.@Deprecated public void setLinearParam(double slope)
slope - of the linear utility function.public double getOffset()
@Deprecated public double getConstantParam()
public void setOffset(double offset)
offset - of the linear utility function.@Deprecated public void setConstantParam(double offset)
offset - of the linear utility function.public java.lang.String toString()
toString in class java.lang.Objectpublic EvaluatorInteger clone()
clone in interface Evaluatorclone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||